Vue.use(Toasted)//右上角弹窗提醒  https://github.com/shakee93/vue-toasted

Vue.prototype.$success = function (msg) {
  Vue.toasted.success(
    msg,
    {
      theme: "outline",
      position: "top-right",
      duration : 800,
    }
  )}
Vue.prototype.$info = function (msg) {
  Vue.toasted.show(
    msg,
    {
      theme: "outline",
      position: "top-right",
      duration : 1500,
    }
  )}
Vue.prototype.$warn = function (msg) {
  Vue.toasted.show(
    msg,
    {
      theme: "bubble",
      icon : 'error_outline',
      position: "top-right",
      duration : 2500,
    }
  )}
